package com.lemon.soft.bookingroom.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lemon.soft.bookingroom.dto.CancellationDTO;
import com.lemon.soft.bookingroom.entity.CancellationRecordsEntity;
import com.lemon.soft.bookingroom.util.PageUtils;
import com.lemon.soft.bookingroom.util.R;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * 
 *
 * @author ${author}
 * @email ${email}
 * @date 2025-05-29 12:38:52
 */
public interface CancellationRecordsService extends IService<CancellationRecordsEntity> {

    R queryPage();

    String applyCancellation(CancellationDTO cancellationDTO, Integer userId);

    /**
     * 根据取消时间计算退款金额
     */
    BigDecimal calculateRefundAmount(Integer bookingId, LocalDateTime cancelTime);

    String reviewCancellation(Integer cancellationId, Integer staffId, Integer reviewStatus, String reviewRemark);
}

